//
//  CommonData.h
//  HealthChengDuTKT
//
//  Created by Evan on 05/12/2016.
//  Copyright © 2016 Evan. All rights reserved.
//

#ifndef CommonData_h
#define CommonData_h


/////////////////////
//com.shanbao.devShanBaoCoin
/////////////////////


#define hasLaunchedOnce                     @"hasLaunchedOnce"                      //曾经启动过就是false

//屏幕尺寸
#define KScreenWidth                        [UIScreen mainScreen].bounds.size.width             // 屏幕宽度
#define KScreenHeight                       [UIScreen mainScreen].bounds.size.height            // 屏幕高度


#define UIColorFromRGB(rgbValue) \
[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16)) / 255.0 \
green:((float)((rgbValue & 0xFF00) >> 8)) / 255.0 \
blue:((float)(rgbValue & 0xFF)) / 255.0 \
alpha:1.0]
#define UIColorFromRGBA(rgbValue, a) \
[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16)) / 255.0 \
green:((float)((rgbValue & 0xFF00) >> 8)) / 255.0 \
blue:((float)(rgbValue & 0xFF)) / 255.0 \
alpha:a]
//设置颜色ga
#define LCFromRGB(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]

#define COLOR_Background                    LCFromRGB(248,248,248)                  //背景颜色--灰色
#define COLOR_Background_black              LCFromRGB(25, 30, 46)//首页和交易页背景色

#define COLOR_home_topNotice                LCFromRGB(7, 35, 75)

//交易模块颜色值


#define COLOR_Line                          LCFromRGB(230,230,230)                  //线条颜色
#define COLOR_BianKuang                     LCFromRGB(227,227,227)                  //边框颜色

//tabbar 颜色值
#define COLOR_tabBarRed                     LCFromRGB(240, 92, 164)                  //tabbar高亮红色

#define COLOR_NAVIGATION                    LCFromRGB(30,30,30)                     //主题导航navigation背景色

//NSError 的错误字段名
#define NSErrorMessagePro                   @"NSLocalizedDescription"


#endif /* CommonData_h */
